const _TaskBaseMaster = require('../utils/task/TaskBaseMaster')

class MasterMiniGdajie extends _TaskBaseMaster {
	constructor(args) {
		super(args)
		this.filter = {
			'_type_.id': 'gdajie',
			'_cate_.id': 'fetch',
		}
		this.bash = {
			child_process: 'fork', //exec, execFile, fork, spawn
			cmd: 'MiniGdajieTaskFactory.js',
			// cmd: `node songlist-crawler-factory.js ${_source} #{_id} #{init}> ../logs/${logName}_#{_id}.log 2>&1`,
			args: [],
			options: {
				cwd: __dirname,
			},
			params: {},
		}
	}
}

let master = new MasterMiniGdajie()
master.start().then(r => {
	console.log('r ', r)
})

// http://verycd.gdajie.com/topics/2775131/